<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
	 </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <form action="" method="POST" id="rowForm">
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
                <tr><td><?= translate('STARTTIME') ?>:</td><td><input type='text' name='row[starttime]' id='starttime' class='datepicker' value="<?= $start ?>"/></td></tr>
                <tr><td><?= translate('ENDTIME') ?>:</td><td><input type="text" name="row[endtime]" id="endtime" class='datepicker'  value="<?= $end ?>"/></td></tr>
				<tr><td><?= translate('PLATFORM_NAME') ?>:</td><td><?= $platformlist ?></td></tr>
                <tr><td><?= translate('GAME_NAME') ?>:</td><td><?= $gamelist?></td></tr>
                <tr><td><?= translate('SERVER_NAME') ?>:</td><td><?= $serverlist?></td></tr>
                <tr><td><?= translate('TYPE') ?>:</td><td><?= $type ?></td></tr>
                <tr></tr>
                <tr><td></td><td>
	                <input type="submit" value="<?= translate('SHENGCHENG') ?>" id="submit"/> 
                </td></tr>
            </table>
            <div id="bg">
		    <div style="left:45%;top:40%;width:160px;height:16px; background-color:#fff; position:absolute;">
		    <img src="./images/uploading.gif">
		    </div>
			</div>
        </form>
        <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                $("#starttime").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#endtime").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#platform").formValidator({empty: false, onshow: '<?= translate('PLASE_SELECT') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#game").formValidator({empty: false, onshow: '<?= translate('PLASE_SELECT') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});  
                $("#server").formValidator({empty: false, onshow: '<?= translate('PLASE_SELECT') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});                  
                $("#type").formValidator({empty: false, onshow: '<?= translate('PLASE_SELECT') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
            });
        </script>
    </body>
</html>
